<!DOCTYPE html>
<html>

{include file="Public:header" /}
<style>
.chat-view .ibox-content{
	padding: 15px 20px 20px;
}
</style>	
<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">

        <div class="row">
            <div class="col-sm-12">

                <div class="ibox chat-view">

                    <div class="ibox-title">
                        <!-- <small class="pull-right text-muted">最新讨论：2015-02-02 18:39:23</small> --> 
                        	<h5>讨论详情</h5>
                        	<button onclick="history.go(-1);" style="margin-top: -6px;" class="btn btn-primary pull-right"><i class="fa fa-arrow-left"></i> 返回</button>
                    </div>


                    <div class="ibox-content" >

                        <div class="row">

                            <div class="col-md-12 ">
                                <div class="chat-discussion" style="height:530px;">

                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>最新讨论</h5>
                        <div class="ibox-tools">
                            <span class="label label-warning-light">2015-02-02 18:39:23</span>
                        </div>
                    </div>
                    <div class="ibox-content">

                            <div class="feed-activity-list">
							  {foreach name="discuss" item="discuss"}
                                <div class="feed-element">
                                    <a href="profile.html" class="pull-left">
                                        <img alt="image" class="img-circle" src="__PUBLIC__/Admin/img/profile.jpg">
                                    </a>
                                    <div class="media-body ">
                                       <!--  <small class="pull-right">5分钟前</small> -->
                                        <strong>{$discuss['nickname']}</strong>
                                        <br>
                                        <small class="text-muted">{$discuss['add_time']|date="Y-m-d H:i:s",###}</small>
										<div class="well">
										{if condition="$discuss['reply_user_id']"}
										 	<strong>回复{$discuss['reply_nickname']}:</strong>
										 	<br>
										 	<br>
										{/if}
                                            {$discuss['content']}
                                        </div>
                                    </div>
                                </div>
							{/foreach}



                               <!--  <div class="feed-element">
                                    <a href="profile.html" class="pull-left">
                                        <img alt="image" class="img-circle" src="__PUBLIC__/Admin/img/a3.jpg">
                                    </a>
                                    <div class="media-body ">
                                        <small class="pull-right">2小时前</small>
                                        <strong>林依晨Ariel</strong>
                                        <br>
                                        <small class="text-muted">2014.11.8 12:22</small>
                                        <div class="well">
                                            【九部令人拍案叫绝的惊悚悬疑剧情佳作】如果你喜欢《迷雾》《致命ID》《电锯惊魂》《孤儿》《恐怖游轮》这些好片，那么接下来推荐的9部同类题材并同样出色的的电影，绝对不可错过哦~
                                        </div>
                                    </div>
                                </div>
                                <div class="feed-element">
                                    <a href="profile.html" class="pull-left">
                                        <img alt="image" class="img-circle" src="__PUBLIC__/Admin/img/a5.jpg">
                                    </a>
                                    <div class="media-body ">
                                        <small class="pull-right">32分钟前</small>
                                        <strong>颜文字君</strong> 评论了
                                        <br>
                                        <small class="text-muted">2014.11.8 12:22</small>
                                        <div class="well">
                                            【九部令人拍案叫绝的惊悚悬疑剧情佳作】如果你喜欢《迷雾》《致命ID》《电锯惊魂》《孤儿》《恐怖游轮》这些好片，那么接下来推荐的9部同类题材并同样出色的的电影，绝对不可错过哦~
                                        </div>
                                    </div>
                                </div> -->
                            </div>
							
                            <button id="getmore" onclick="ajax_sourch_submit();" class="btn btn-primary btn-block m-t"><i class="fa fa-arrow-down"></i> 更多讨论</button>
                            <br/>
                            <p id="load" style="display:none;" class="text-center"><i class="fa fa-spinner fa-spin"></i> 加载数据中...</p>
							<p id="data_null" style="display:none;" class="text-center">没有数据了</p>
							
                    </div>

            </div>

                                </div>

                            </div>
                    <!--         <div class="col-md-3">
                                <div class="chat-users" style="height:430px;">


                                    <div class="users-list">
                                        <div class="chat-user">
                                            <img class="chat-avatar" src="__PUBLIC__/Admin/img/a4.jpg" alt="">
                                            <div class="chat-user-name">
                                                <a href="#">伤城Simple</a>
                                            </div>
                                        </div>
                                        <div class="chat-user">
                                            <img class="chat-avatar" src="__PUBLIC__/Admin/img/a1.jpg" alt="">
                                            <div class="chat-user-name">
                                                <a href="#">从未出现过的风景__</a>
                                            </div>
                                        </div>
                                        <div class="chat-user">
                                            <span class="pull-right label label-primary">在线</span>
                                            <img class="chat-avatar" src="__PUBLIC__/Admin/img/a2.jpg" alt="">
                                            <div class="chat-user-name">
                                                <a href="#">冬伴花暖</a>
                                            </div>
                                        </div>
                                        <div class="chat-user">
                                            <span class="pull-right label label-primary">在线</span>
                                            <img class="chat-avatar" src="__PUBLIC__/Admin/img/a3.jpg" alt="">
                                            <div class="chat-user-name">
                                                <a href="#">ZM敏姑娘	</a>
                                            </div>
                                        </div>
                                        <div class="chat-user">
                                            <img class="chat-avatar" src="__PUBLIC__/Admin/img/a5.jpg" alt="">
                                            <div class="chat-user-name">
                                                <a href="#">才越越</a>
                                            </div>
                                        </div>
                                        <div class="chat-user">
                                            <img class="chat-avatar" src="__PUBLIC__/Admin/img/a6.jpg" alt="">
                                            <div class="chat-user-name">
                                                <a href="#">时光十年TENSHI</a>
                                            </div>
                                        </div>
                                        <div class="chat-user">
                                            <img class="chat-avatar" src="__PUBLIC__/Admin/img/a2.jpg" alt="">
                                            <div class="chat-user-name">
                                                <a href="#">刘顰颖</a>
                                            </div>
                                        </div>
                                        <div class="chat-user">
                                            <span class="pull-right label label-primary">在线</span>
                                            <img class="chat-avatar" src="__PUBLIC__/Admin/img/a3.jpg" alt="">
                                            <div class="chat-user-name">
                                                <a href="#">陈泳儿SccBaby</a>
                                            </div>
                                        </div>


                                    </div>

                                </div>
                            </div> -->

                        </div>
<!--                         <div class="row">
                            <div class="col-sm-9">
                                <div class="form-group">

                                    <div class="form-group">
                                        <textarea class="form-control message-input" name="message" placeholder="输入消息内容，按回车键发送"></textarea>
                                    </div>
                                    <div class="text-right">
	                                    <button type="submit" class="btn btn-sm btn-primary"><strong>回复消息</strong>
	                                    </button>
                               		 </div>

                                </div>
                            </div>
                        </div>
 -->                    </div>
                </div>
            </div>
        </div>
    </div>
  {include file="Public:footer" /}
  
  <script>
var activity_id = {$Think.get.id};
var page = 1;
 /*** ajax 提交表单 查询订单列表结果*/  
 function ajax_sourch_submit()
 {	 	 	 
	 	$("#load").show();
        page += 1;
		$.ajax({
			type : "GET",
			//url:"/index.php?m=Mobile&c=User&a=collect_list&is_ajax=1&p="+page,//+tab,			
			url:"__URL__/Discuss/is_ajax/1/id/"+activity_id+"/p/"+page,//+tab,
//			data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
			success: function(data)
			{
				$("#load").hide();
				if($.trim(data) == ''){
					$('#getmore').hide();
					$('#data_null').show();
				}else{
				    $(".feed-activity-list").append(data);
				}
			}
		}); 
 } 
</script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/chat_view.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:48 GMT -->
</html>
